package com.it.sun.yuebike.base.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.it.sun.yuebike.framework.model.vo.AttachmentVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.it.sun.yuebike.base.model.entity.PoiEntity;
import com.it.sun.yuebike.base.model.entity.UserEntity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName com.it.sun.yuebike.base.model.dto.BikeInvitationDTO
 * @Author sunmannian
 * @Date 2021/6/6 18:00
 * @Version V1.0
 * Description  <骑车邀请信息对象>
 * Copyright (C) 北京中电兴发科技有限公司  since 2021/6/6
 */
@Data
public class BikeInvitationDTO implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键信息")
    private String id;

    @ApiModelProperty(value = "骑行的内容信息")
    private String content;

    @ApiModelProperty(value = "相关照片信息")
    private List<AttachmentVO> pictures;

    @ApiModelProperty(value = "联系电话")
    private String contractPhone;

    @ApiModelProperty(value = "骑行线路")
    private String line;

    @ApiModelProperty("起点")
    private PoiEntity startingPoint;

    @ApiModelProperty(value = "终点")
    private PoiEntity destination;

    @ApiModelProperty(value = "发布人")
    private UserEntity publisher;

    @ApiModelProperty(value = "出发时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @ApiModelProperty("查看数")
    private Integer checkCount;

    @ApiModelProperty("喜爱数")
    private Integer favoriteCount;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("我是否喜爱")
    private Boolean meFollow;
}



